package com.wonders.hisdoctor.station.project.laboratory.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhaogongming
 * @date 2021-02-09
 **/
@ApiModel("查询检验申请Vo")
@Data
public class LaboratoryInfoRequestVo implements Serializable {

    @ApiModelProperty("病人标识号")
    @NotBlank(message = "请在就诊队列选择就诊患者")
    private String patientId;

    @ApiModelProperty("就诊时间")
    @NotNull(message = "就诊时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date visitDate;

    @ApiModelProperty("就诊序号")
    @NotNull(message = "就诊序号不能为空")
    private Integer visitNo;

    @ApiModelProperty("医生编号")
    private String empNo;
}
